package com.richly.iot;

import lombok.Data;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * @Author: l_y
 * @Date: 2022/6/16 17:21
 * @FileName: IotWrapper
 * @Description: iot的sql解析器
 */
@Data
public class IotWrapper implements Serializable {

    private Map<String, Object> params = new HashMap<>();
    private Map<String, Object> gt = new HashMap<>();
    private Map<String, Object> lt = new HashMap<>();

    public IotWrapper eq(String colum, Object value) {
        params.put(colum, value);
        return this;
    }

    public IotWrapper gt(String colum, Object value) {
        gt.put(colum, value);
        return this;
    }

    public IotWrapper lt(String colum, Object value) {
        lt.put(colum, value);
        return this;
    }

}
